package com.itmk.web.sys_banner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itmk.web.goods.entity.Goods;
import lombok.Data;

import java.io.Serializable;

/**
 * (SysBanner)实体类
 *
 * @author sdr
 * @since 2023-12-05 15:40:53
 */
@Data
@TableName("sys_banner")
public class SysBanner implements Serializable {

    private static final long serialVersionUID = -80857712535370092L;
    /**
     * 广告id
     */
    @TableId(type = IdType.AUTO)
    private Integer banId;
    /**
     * 商品id
     */
    private Long goodsId;
    /**
     * 标题
     */
    private String title;
    /**
     * 图片
     */
    private String images;
    /**
     *  0:下架 1：上架
     */
    private String status;
    /**
     * 序号
     */
    private Integer orderNum;

    @TableField(exist = false)
    private Goods goods;

}

